package com.ftg.learn.day09.pattern.factorypattern;

/**
 * 买宠物
 *
 * @author 布衣
 */
public class PayPet {

    public static void main(String[] args) {
        PetFactory petFactory = new PetFactory();
        Pet pet = petFactory.getPet(PetEnum.Cat);

        Pet pet1 = petFactory.getPet(PetEnum.Dog);

        Pet pet2 = petFactory.getPet("张三",500,PetEnum.Cat);

    }

}
